﻿using Microsoft.AspNetCore.Mvc;
using Configuration.ServerApi.Param;
using System.Threading.Tasks;

namespace Configuration.ServerApi.Service
{
    /// <summary>
    /// IBigModelService
    /// </summary>
    public interface IBigModelService
    {
        /// <summary>
        /// 获取百度API服务的Token
        /// </summary>
        /// <returns>JSON结果集</returns>
        public Task<JsonResult> BaiduAccessToken();

        /// <summary>
        /// 百度语音转文字
        /// </summary>
        /// <param name="param">搜索条件</param>
        /// <returns>JSON结果集</returns>
        public Task<JsonResult> BaiduSpeechToText(SearchModel param);

    }
}
